package com.xcity.pomelo.response;

import java.util.List;

import com.xcity.game.account.AccountChannel;
import com.xcity.game.activity2.platform.PlatformGift;
import com.xcity.game.item.ItemInfo;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@PomeloMessage(type = Message.Type.RESPONSE)
public class PlatformGiftInfoResponse extends Response {
	
	public byte type; // 礼包类型
	public AccountChannel channel; // 礼包所属渠道
	public int id; // 礼包id
	public List<ItemInfo> content; // 礼包内容
	public byte state; // 礼包领取状态
	
	public PlatformGiftInfoResponse(int serial, PlatformGift gift, byte state) {
		super(serial);
		this.type = gift.type;
		this.channel = gift.channel;
		this.id = gift.id;
		this.content = gift.content.convert();
		this.state = state;
	}

}
